//获取应用实例
const app = getApp();
Page({
  search: function (e) {
    console.log(e.detail);
    wx.redirectTo({
      url: '../Search/SearchList?cat_name=&keywords=' + e.detail.value,
    })
  },
  onShareAppMessage: function () {
    return {
      title: '了解食材的功效、营养及搭配宜忌',
      imageUrl: 'https://resource.160nurse.com/upload/miniprogram/foods.jpeg'
    }
  }
})